package com.kevin.feign.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kevin.feign.service.ISearchService;
import com.kevin.feign.util.ResultObject;

@RestController
public class MainAction {
	
	@Autowired
	@Qualifier("searchService")
	private ISearchService searchService;
	
	@RequestMapping("/search")
	public ResultObject search() {
		return searchService.listSearch(null);
	}
	
}
